package com.wosai.medical.hospital.demo.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * App-配置
 *
 * @author yangyong
 * @version 1.0
 * @date 2019/11/23 6:13 下午
 **/
@Configuration
@EnableConfigurationProperties(AppConfig.AppProperty.class)
public class AppConfig {

    @Data
    @ConfigurationProperties(prefix = "app")
    public static class AppProperty {
        /**
         * 接入账号
         */
        private String appId;
        /**
         * 接入秘钥
         */
        private String appSecret;
    }
}
